<%@ page import="com.macrosolution.exdebito.Message" %>
		
		
	<article class="col-sm-12 col-md-12 col-lg-6 sortable-grid ui-sortable">

			<!-- Widget ID (each widget will need unique ID)-->
			
			<!-- end widget -->

		<div class="jarviswidget jarviswidget-sortable" id="wid-id-9" data-widget-collapsed="false" data-widget-colorbutton="false" data-widget-editbutton="false" role="widget" style="">
				
				<header role="heading">
				<div class="jarviswidget-ctrls" role="menu">   </div>
					<span class="widget-icon"> <i class="fa fa-columns"></i> </span>
					<h2>Invia un Messaggio</h2>

				<span class="jarviswidget-loader"><i class="fa fa-refresh fa-spin"></i></span></header>

				<!-- widget div-->
				<div role="content">

					<!-- widget edit box -->
					<div class="jarviswidget-editbox">
						<!-- This area used as dropdown edit box -->

					</div>
					<!-- end widget edit box -->

					<!-- widget content -->
					<div class="widget-body">

						<div class="row">
							
							<div class="${hasErrors(bean: messageInstance, field: 'expire', 'error')} required col-md-8 col-md-offset-1	">
								<label for="expire" class="control-label"><g:message code="message.expire.label" default="Data di Scadenza" /><span class="required-indicator">*</span></label>
								<div>
									
									<g:datePicker name="expire" precision="day"  value="${formatDate(format:'dd-MM-yyyy',date:messageInstance?.expire)}"  />
									<span class="help-inline">${hasErrors(bean: messageInstance, field: 'expire', 'error')}</span>
								</div>
							</div> 	
							
						</div>

						<hr>

						<div class="row">
						
							<div class="${hasErrors(bean: messageInstance, field: 'message', 'error')} ">
								
								<div class="col col-md-10 col-md-offset-1">
									
									<span class="help-inline">${hasErrors(bean: messageInstance, field: 'message', 'error')}</span>
									<textarea class="form-control" name="message" value="${messageInstance?.message}" placeholder="Testo del messaggio.." rows="6"></textarea>
								</div>
							</div>
							
						</div>
						<g:hiddenField type="number"  name="userID" value="${sec.loggedInUserInfo(field:"id")}" />
					
					
		

			
